package com.lemon.boot.service;

import com.lemon.boot.common.base.BaseService;
import com.lemon.boot.dto.DeptDTO;
import com.lemon.boot.po.DeptPO;
import com.lemon.boot.vo.TreeSelectVO;

import java.util.List;
import java.util.Map;

/**
 * 部门表 业务接口
 *
 * @author Lemon
 * @since 2024-02-29
 */
public interface IDeptService extends BaseService<DeptPO, DeptDTO> {
    List<String> getDeptName(Map<String, Object> param);

    Map<String, Integer> getDeptNameAndUserCount(Map<String, Object> param);

    List<TreeSelectVO> getParentByTreeSelect();

    List<TreeSelectVO> getByTreeSelectByTenantId(Long tenantId);

    List<Long> getSuperId(Long tenantId, List<Long> deptIdList);
}